package com.cqemme.messageservice.feign;


import com.cqemme.messageservice.feign.fallback.UserServiceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务接口调用
 * @author nejery
 */
@FeignClient(value="user-service", fallback = UserServiceFeignFallBack.class)
public interface UserServiceFeign {

    /**
     * 获取开发者列表
     * @param id 角色id
     * @return 查询结果
     */
    @GetMapping(value = "/role/selectRoleUser/{id}")
    String getDevelopers(@PathVariable(value = "id") String id);
}
